package com.yager.mapper;

import com.yager.model.Collection;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CollectionMapper {
    int insert(Collection record);

    int insertSelective(Collection record);

    void delete(String userId,String houseId);

    void deleteByHouseId(String houseid);

    //返回的是house的收藏
    List<Collection> selectByUserId(String userid);

    //返回的是order的收藏
    List<Collection> selectByUserId2(String userid);

    int getSameCollectionCount(String userid,String houseid);
}